Nfc

object Nfc

NFC-related utilities independent of SDK instance lifecycle.

This object is instance-agnostic: its configuration and listener state are independent of any specific SDK instanceId and can be used before the SDK is initialized.

Functions

Link copied to clipboard
fun getNfcConfiguration(context: Context): NfcConfiguration

Retrieve the currently persisted NFC configuration.

Link copied to clipboard

Remove the currently registered device engagement listener.

Link copied to clipboard
fun setDeviceEngagementListener(listener: (Throwable?) -> Unit)

Registers a callback to receive the result of NFC device engagement.

Link copied to clipboard
fun setNfcConfiguration(context: Context, newConfiguration: NfcConfiguration)

Persist a new NFC configuration to be applied for subsequent device engagements.